FORCE WATER EFFECT

This command will use the current control device if it has force feedback capability.

  Syntax
FORCE WATER EFFECT Magnitude Value, Delay Value
  Parameters
Magnitude Value
Integer
The magnitude value determines the strength of the force between 0 and 100
Delay Value
Integer
The delay value indicates how many milliseconds the effect lasts for. A delay value of zero indicates an infinite effect of force

  Returns

This command does not return a value.

  Description

The command will force the device to simulate the effect of moving through water. The force applied to any joystick movement will simulate a dampening effect when fast movements are attempted by the user. The magnitude value determines the strength of the force between 0 and 100. The delay value indicates how many milliseconds the effect lasts for. A delay value of zero indicates an infinite effect of force. The magnitude and delay should be integer values. This command is NOT an action forced on the controller, but an influence against the natural movement of the main joypad by the end user. Only some devices offer this counterforce. Counterforce will not be available in such devices as rumble pack gamepads.

  Example Code
rem Prepare Force Feedback (if available)
ForcePresent=0
empty checklist
PERFORM CHECKLIST FOR CONTROL DEVICES
for c=1 to checklist quantity()
if checklist value a(c)=1
SET CONTROL DEVICE checklist string$(c)
ForcePresent=1
endif
next c
rem Test loop
do
rem Produce random values
MagnitudeValue=rnd(100)
DelayValue=rnd(100)
if ForcePresent=1
FORCE WATER EFFECT MagnitudeValue, DelayValue
wait 1000*8
FORCE NO EFFECT
endif
loop
end
  See also

INPUT Commands Menu
Index